/*
   If you plan to use this store with a widget that is a Dojo Data consumer, then you need
   to use dojo.data.ObjectStore wrapper around this store.
   More info: http://dojotoolkit.org/reference-guide/dojo/data/ObjectStore.html
*/


define(
   [
      'dojo/_base/declare',
      'dojo/_base/lang',
      'dojo/Deferred',
      'dojo/store/Observable',
      'noBusinessBase/store/JsonRestDistribute'
   ],
   function(declare, lang, Deferred, Observable, Store)
   {
      return declare([Store],
      {
         // Constuctor
         constructor:function (args)
         {
            // Call Super
            dojo.safeMixin(this, args);
         },
         postscript: function(args)
         {
            // Called after constructors
            this.inherited(arguments);
            this.mObserve = new Observable(this);
         },
         queryEngine: function(query, nonPagedOptions)
         {
            return function(list) { return list; };
         },
         sendNotify: function(pObject, id)
         {
            this.mObserve.notify(pObject, id);
         }
      });
   }
);
